function JumpDetail(type, id, root) {
	root = root ? root : "../";
	if (type == '0') {
		var wvid = 'Ques';
		OpenWebView(root + 'Question/question-detail/index.html', id, {}, {
			"quesId": id
		});
	} else if (type == '1') {
		var wvid = 'Lec';
		OpenWebView(root + 'Lecture/lecture-detail/index.html', id, {}, {
			"id": id,
		});
	} else {
		OpenWebView('../Common/announcement.html', id, {},{
			"id": id,
		});
	}
}

function OpenWebView(url, id, style, extras) {
	if (HaveRun(id)) {
		plus.webview.getWebviewById(id).close('none', 0);
	}
	let wv = plus.webview.create(url, id, style, extras);
	return wv;
}
